<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnStatusInOrderTaskListTable extends AbstractMigration
{
    public function up()
    {
        $this->table('order_task_list')
            ->addColumn("status", 'enum', [
                'values' => "default,withdraw,invalid",
                'default' => 'default',
                'comment' => '订单任务状态',
                'null' => false
            ])->save();
    }

    public function down()
    {
        $this->table('order_task_list')
            ->removeColumn('status')
            ->save();
    }
}
